<% HttpSession httpSession = request.getSession();
   Employee employee = (Employee)session.getAttribute("user");
   if(employee == null || employee.getRole()== null){
   	response.sendRedirect("errorLogin.jsp");
   }
%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.util.ArrayList"%>
<%@page import="com.msti.entity.Course"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>
<%@page import="com.msti.entity.Employee"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<a href="adminPage.jsp">Home</a>
<form action="createBatch.do" method="post">
	 
start date :<input type="text" name="startDate"/><br/>
end date :<input type="text" name="endDate"/><br/>

select course :<select name="course">

	<%
		List<Course> allCourse = new ArrayList<Course>();
		allCourse = (ArrayList<Course>)request.getAttribute("allCourse");
		if(allCourse != null){
		Iterator<Course> iterator = allCourse.iterator();
		while(iterator.hasNext()){
	%>

	<option><%=iterator.next().getName() %></option>

<%} }%>
</select><br/>
<input type="submit" value="Create Batch">
</form>

</body>
</html>